package cn.renxuan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import cn.renxuan.redis.LettuceRedisHelper;
import cn.renxuan.service.weather.WeatherHelper;

@SpringBootApplication
public class App {
    public static void main(String[] args) {
        try {
            // 初始化天气接口服务
            WeatherHelper.registerWeatherConfig();
            // 初始化Redis连接池
            LettuceRedisHelper.init();
        } catch (Exception e) {
            CommonUtil.printThreadLog(String.format("初始化天气接口服务失败：%s", e.getMessage()));
        }
        SpringApplication.run(App.class, args);
    }
}